package com.szt.sy.service.system.dict;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.szt.sy.entity.system.Dict;
import com.szt.sy.mapper.system.DictMapper;

/**
 * @author wwy
 *
 *         <p>
 * 		说明：数据字典 服务<br/>
 *         创建时间：2018-01-15
 *         </p>
 */
@Service
@Transactional(rollbackFor = RuntimeException.class)
public class DictService extends ServiceImpl<DictMapper, Dict> {
	
	/**
	 * 列表
	 * 
	 * @param page
	 * @
	 */
	public Page<Dict> list(Page<Dict> page, Map<String, Object> map) {
		page.setRecords(baseMapper.dateList(page, map));
		return page;
	}
	
	/**
	 * 列表(全部)
	 * 
	 * @param pd
	 * @
	 */
	public List<Dict> listAll(Map<String, Object> map) {
		return baseMapper.dateList(map);
	}
	
}
